package com.yebxxx.server.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yebxxx.server.pojo.*;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stx
 * @since 2022-03-23
 */
public interface IEmployeeService extends IService<Employee> {
    /**
     * 获取所有员工信息分页查询
     * @param currentPage
     * @param size
     * @param employee
     * @param beginDateScope
     * @return
     */
    PageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    /**
     * 获取最大工号
     * @return
     */
    RespBean maxWorkId();

    /**
     * 添加员工
     * @param employee
     * @return
     */
    RespBean addEmp(Employee employee);

    /**
     * 查询员工信息
     * @param id
     * @return
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 获取所有员工工资账套
     * @param currentPage
     * @param size
     * @return
     */
    PageBean getEmployeeWithSalary(Integer currentPage, Integer size);

    /**
     * 员工离职
     * @param
     * @param
     * @return
     */

    /**
     * 员工离职
     * @param employee
     * @return
     */
    RespBean updateWorkState( Employee employee);

    /**
     * 离职员工列表
     * @return
     */
   PageBean deleteEmList(Integer currentPage, Integer size, EmployeeTrain employeeTrain, Teacher teacher);

    void updateEmpDep(String workId, Integer depId);

}
